<!doctype html>
<html>
<head>
{include file="user/user_top.tpl"}
<link rel="stylesheet" type="text/css" href="/static/css/user_min.css?v={$smarty.const.UNCLONE_VERSION}">
</head>
<body class="user-info-body">
{include file="user/user_header.tpl"}
<div class="main_wrap">
	<div class="user_reg user_user_info">
		<h2 class="model">修改个人资料</h2>
		<div class="uploadbox clearfix">
			<form action="/user/upload_img" method="post" enctype="multipart/form-data" id="upload_form" onsubmit="return false;">
				<div class="upload ib" id="js_upload" title="点击上传头像">
					<div class="img-box">

					<div class="default" id="js_default" style="display: none;">
						<i class="upload_icon"></i>
						<span></span>
					</div>
					<img id="js_img" src="{$image|default:'/static/img/default.gif'}">
					</div>
					<input type="file" name="upload_file" id="upload_file" class="file_btn" title="">
				</div>
				<div class="upload_text ib">
					{*<h2>{$email}</h2>*}

					<p class="text">上传图片的最佳尺寸推荐为150*150像素，支持的格式：jpg、jpeg、png、gif且大小不超过8MB</p>
					<p><label class="error upload_error hide" id="upload_error"><i class="icon waring_tip"></i></label>
					</p>
					{*<div class="eidtbox" style="margin-top: 10px;">
						<a class="simple_btn edit_profile" href="javascript:void(0);"><i class="user_icons"></i>修改头像</a>
						<a class="simple_btn edit_pwd" href="/user/update_pwd">修改密码<i class="user_icons"></i></a>
					</div>*}
				</div>
				{*<div class="upload_text ib">
					<h2>{if isset($mobile)}{$mobile}{else}{$email}{/if}</h2>
					<div class="eidtbox">
						<a class="edit_profile" href="/user/update_info">修改资料<i class="user_icons"></i></a>
						<a class="edit_pwd" href="/user/update_pwd">修改密码<i class="user_icons"></i></a>
					</div>
				</div>*}
			</form>
		</div>
		<form action="/user/save_user_info" method="post" id="user_info_form" onsubmit="return false;">
		<input class="hidden" name="image" value="{$image|default:'/static/img/default.gif'}" id="user_face"/>
		<div class="formbox">
			<div class="item clearfix">
				<div class="icon user_icons ib user_info_icon nickname_icon">icon</div>
				<div class="ib">
					<label class="field" for="nickname">昵称</label>
					<div class="write">
						<input class="form_control" type="text" name="nickname" id="nickname" value="{$nickname}" autocomplete="off" placeholder="请输入昵称">
						<i class="user_icons success"></i>
					</div>
				</div>
			</div>
			<div class="item clearfix">
				<div class="icon user_icons ib user_info_icon companyname_icon">icon</div>
				<div class="ib">
					<label class="field" for="company_name">公司名称</label>
					<div class="write">
						<input class="form_control" type="text" name="company_name" id="company_name" value="{$company_name}" autocomplete="off" placeholder="请输入公司名称">
						<i class="user_icons success"></i>
					</div>
				</div>
			</div>
			<div class="item clearfix">
				<div class="icon user_icons ib user_info_icon mobile_icon">icon</div>
				<div class="ib">
					<label class="field" for="mobile">手机 {if $mobile!=''}<span class="valid_text  valid_right">已验证</span>{elseif $n_mobile!=''}<span class="valid_text  no_valid">未验证</span>{/if}</label>
					<div class="write">
						{if $mobile==''}
							<input class="form_control" type="text" name="n_mobile" id="mobile" value="{$n_mobile}" autocomplete="off" placeholder="请输入手机号码">
							<i class="user_icons success"></i>
						{else}
							<span class="display_field">{if $mobile!=''}{$mobile}{else}{$n_mobile}{/if}</span>
						{/if}
						{if $mobile!=''}
							<a class="a_btn" href="/user/new_phone">修改手机</a>
						{/if}
						{if $n_mobile!=''}
							<a class="a_btn" id="valid_mobile" href="/user/valid_phone">验证手机</a>
						{/if}
					</div>
				</div>
			</div>
			<div class="item clearfix">
				<div class="icon user_icons ib user_info_icon email_icon">icon</div>
				<div class="ib">
					<label class="field" for="email">邮箱 {if $email!=''}<span class="valid_text  valid_right">已验证</span>{elseif $n_email!=''}<span class="valid_text  no_valid">未验证</span>{/if}</label>
					<div class="write">
						{if $email==''}
							<input class="form_control" type="text" name="n_email" id="email" value="{$n_email}" autocomplete="off" placeholder="请输入邮箱">
							<i class="user_icons success"></i>
							{else}
							<span class="display_field">{if $email!=''}{$email}{else}{$n_email}{/if}</span>
						{/if}
						{if $email!=''}
						<a class="a_btn" href="/user/new_email">修改邮箱</a>
						{/if}
						{if $n_email!=''}
						<a class="a_btn" id="valid_email" href="javascript:void(0);" data-email="{$n_email}">验证邮箱</a>
						{/if}
					</div>
				</div>
			</div>
			{*<div class="item clearfix">
				<div class="icon user_icons ib companyname_icon">icon</div>
				<div class="ib">
					<label class="field" for="company_name">修改密码 <a class="a_btn" href="javascript:void(0);">修改密码</a></label>
				</div>
			</div>*}
			<div class="item save_btn_box">
				<button class="blue_btn register_btn" id="submit_user_info_form">保存</button>
			</div>
			<div class="item" id="user_info_form_msg">
				<i class="icon waring_tip"></i><span class="msg_text"></span>
			</div>
		</div>
		</form>
	</div>
</div>
<img class="lbbg" src="/static/img/user/bg1.png"/>

{include file="user/user_footer.tpl"}
